
<%@ page contentType="text/html; charset=UTF-8" language="java"
	errorPage=""%>

<%@ page import="java.util.Hashtable"%>

<%  response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 
response.setHeader("Pragma","no-cache"); //HTTP 1.0 
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
	
UserInfo user = null;
List<ServiceKeep> keepList = null;

	if(session.getAttribute("userInfo")==null){
		response.sendRedirect(application.getInitParameter("loginUrl"));
		return;
	}else{
		
		
		
		user = (UserInfo)session.getAttribute("userInfo");
		
		if("18".equals(user.getLoginType())){
			out.println("<script type='text/javascript'>");
			out.println("alert('尊敬的客户,很抱歉,暂不支持随机码登陆方式的用户订购增值业务');");
			out.println("window.history.go(-1)");
			out.println("</script>");
			return;
		}
		if(!("50".equals(user.getLoginType()))&&user.getLinkedAccnbr().size()==0){
			out.println("<script type='text/javascript'>");
			out.println("alert('尊敬的客户,很抱歉,你当前登陆的号码下还未绑定手机号码');");
			out.println("window.history.go(-1)");
			out.println("</script>");
			return;
		}
	}
	 	if(session.getAttribute("mysc")!=null){
	 		keepList = (List)session.getAttribute("mysc");
	 	}
		 
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@page import="com.doone.telmarket.domain.UserInfo"%>
<%@page import="java.util.List"%>
<%@page import="com.doone.telmarket.domain.ibator.ServiceKeep"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>增值业务超市 - 语音及短信增值业务 - 我的订购</title>
<link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/style_link.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/tab.css" rel="stylesheet" type="text/css" />
<script src="${pageContext.request.contextPath}/js/jquery.js"
	type="text/javascript"></script>
<script
	src="${pageContext.request.contextPath}/js/jquery.ui.draggable.js"
	type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/jquery.alerts.js"
	type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/ajaxfileupload.js"
	type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/common.js"
	type="text/javascript"></script>
<link href="${pageContext.request.contextPath}/css/jquery.alerts.css"
	rel="stylesheet" type="text/css" media="screen" />
<style type="text/css">
<!--
.baibai {
	color: #FFF;
}
-->
</style>

<script type="text/javascript">
  
	function deleteKeep(url,table,keepId,line){
		jConfirm('你确定退订删除本条收藏吗?', '确认对话框', function(r) {
			if(r){
				$.ajax({
				    url: url,
				    type: 'POST',
				    data: "keepId="+keepId,
				    timeout: 15000,
				    error: function(){
				        jAlert('请求服务错误','消息');
				    },
				    success: function(msg){
				        if(msg=="删除已收藏增值业务成功"){
							document.getElementById(table).style.display = "none";
							document.getElementById(line).style.display = "none";
						}
				        jAlert(msg,'消息');
				    }
				});
			}
		});
	}
</script>
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td><input id="contextPath" type="hidden" value="${pageContext.request.contextPath}" /><a name="TOP" id="gongneng5"></a> <iframe
			src="${pageContext.request.contextPath}/web/common/head.jsp"
			width="100%" height="267" scrolling="no" frameborder="0"></iframe></td>
	</tr>
</table>
<table width="987" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:8px;">
  <tr>
    <td height="16" align="left" valign="middle" class="huise_12">&nbsp;<a href="index.htm">超市首页</a> &gt; 我的收藏</td>
  </tr>
</table>
<table width="987" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="774" height="500" align="left" valign="top"><table width="769" height="26" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="10"><img src="${pageContext.request.contextPath}/images/list/index_2.gif" width="10" height="30" /></td>
        <td width="753" background="${pageContext.request.contextPath}/images/list/index_3.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="10" align="center" valign="middle" class="baise_14"><img src="${pageContext.request.contextPath}/images/lm_01.gif" width="10" height="30" /></td>
              <td width="80" align="center" valign="middle" background="${pageContext.request.contextPath}/images/lm_03.gif" class="baise_14" style="padding-top:2px;">我的收藏</td>
              <td width="10" height="30" align="center" valign="middle" class="baise_14"><img src="${pageContext.request.contextPath}/images/lm_02.gif" width="10" height="30" /></td>
              <td width="614" height="30" align="left" valign="bottom">&nbsp;</td>
            </tr>
        </table></td>
        <td width="10" align="right"><img src="${pageContext.request.contextPath}/images/list/index_4.gif" width="10" height="30" /></td>
      </tr>
</table>



<table width="769" height="650" border="0" cellpadding="0" cellspacing="0">
<tr>
            <td height="896" align="center" valign="top" style="border-left:1px solid #c2282a; border-right:1px solid #c2282a;">
            
            
            <table width="100%" height="18" border="0" cellpadding="0" cellspacing="0">
            <tr>
                  <td height="18"><a href="#"><a name="yinyue" id="gongneng4"></a></a></td>
              </tr>
              </table>
              <%
              
              	for(int i=0;i<keepList.size();i++){
              		%>
              		<!-- ------------------------------------------------- -->
              <table width="723" border="0" cellspacing="0" cellpadding="0" id="table<%=i %>">
                <tr>
                  <td width="723" height="133" align="center" valign="middle"><table width="723" height="137" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="136" align="left" valign="middle"><table width="99" height="100" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                              <td width="99" height="75" align="center" style="border:1px solid #dfe8ef;"><a href="${pageContext.request.contextPath}<%=keepList.get(i).getServicePage().getPageUrl() %>"><img src="${pageContext.request.contextPath}<%=keepList.get(i).getServicePage().getPageSmallIconPath() %>" width="90" height="65" /></a></td>
                            </tr>
                            <tr>
                              <td width="99" height="25" align="center" valign="middle" class="juhongse_12"></td>
                            </tr>
                        </table></td>
                        <td width="0" align="left"><table width="450" height="104" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                              <td height="20" align="left" valign="middle" class="huise3_12"><strong class="Juh_12">业务名称：<a href="${pageContext.request.contextPath}<%=keepList.get(i).getServicePage().getPageUrl() %>"><%=keepList.get(i).getServicePage().getService().getServiceName() %></a></strong></td>
                            </tr>
                            <tr>
                              <td height="20" align="left" valign="middle"><table width="409" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="61" height="13"><span class="huise3_12">推荐星级</span>：</td>
                                    <td width="348" align="left" valign="middle" class="huise_12"><%
                                    	for(int z=0;z<keepList.get(i).getServicePage().getRecommandGrade();z++){
                                    		%><img src="${pageContext.request.contextPath}/images/list/rihgt_4.gif" width="13" height="12" /><%
                                    	}
                                    %></td>
                                  </tr>
                              </table></td>
                            </tr>
                            <tr>
                              <td height="20" align="left" valign="middle" style="line-height:16px;" class="huise3_12"><table width="409" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td height="13" align="left" class="huise3_12"><span class="huise3_12" style="line-height:16px;">业务介绍：<%=keepList.get(i).getServicePage().getServiceSummaryContent() %> </span></td>
                                  </tr>
                              </table></td>
                            </tr>
                            <tr>
                              <td height="34" align="left" valign="bottom" class="juhongse_12"><table border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="85" align="left" valign="middle"><a href="${pageContext.request.contextPath}<%=keepList.get(i).getServicePage().getPageUrl() %>"><img src="${pageContext.request.contextPath}/images/list/btn_4.gif" width="70" height="20" /></a></td>
                                    <td width="85"><img src="${pageContext.request.contextPath}/images/list/btn_5.gif" width="70" height="20" style="cursor: hand" onclick="deleteKeep('${pageContext.request.contextPath}/web/deleteKeep','table<%=i %>','<%=keepList.get(i).getId() %>','line<%=i %>');" /></td>
                                  </tr>
                              </table></td>
                            </tr>
                        </table></td>
                        <td width="124" align="right"><table width="117" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td height="111" align="center" valign="middle" background="${pageContext.request.contextPath}/images/list/index_8.gif"><table width="117" height="101" border="0" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td height="82" align="center" valign="top"><a href="${pageContext.request.contextPath}/web/showFlash.jsp?flash=<%=keepList.get(i).getServicePage().getPageFlashPath() %>" target="_blank"><img src="${pageContext.request.contextPath}/images/list/bmp_1.gif" width="109" height="82" /></a></td>
                                  </tr>
                                  <tr>
                                    <td align="center" valign="middle" class="nanse2_u"><a href="${pageContext.request.contextPath}/web/showFlash.jsp?flash=<%=keepList.get(i).getServicePage().getPageFlashPath() %>">flash体验</a></td>
                                  </tr>
                              </table></td>
                            </tr>
                        </table></td>
                      </tr>
                  </table></td>
                </tr>
              </table>
                <!-- ------------------------------------ -->
              <table width="723" border="0" id="line<%=i %>" cellpadding="0" cellspacing="0" style="margin-bottom:8px; border-bottom:1px dashed #cccccc">
                <tr>
                  <td height="2"></td>
                </tr>
              </table>
              <!-- ------------------------------------ -->
              		<%
              		
              	}
              %>
              
             
              
             
              
              
              </td>
        </tr>
    </table>
    
    
      <table width="769" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:8px;">
          <tr>
            <td width="10"><img src="${pageContext.request.contextPath}/images/tab_foot_1.gif" width="10" height="6" /></td>
            <td width="749" background="${pageContext.request.contextPath}/images/tab_foot_2.gif"></td>
            <td width="10"><img src="${pageContext.request.contextPath}/images/tab_foot_3.gif" width="10" height="6" /></td>
          </tr>
<tr></tr>
    </table></td>
    <td width="213" align="right" valign="top">
    <iframe src="${pageContext.request.contextPath}/web/common/activity.html" width="100%"  height="317px"  frameborder="0"  marginwidth="0" marginheight="0"  scrolling="no"></iframe>
     <iframe src="${pageContext.request.contextPath}/web/common/m_left.jsp" width="100%" height="600px" frameborder="0"  marginwidth="0" marginheight="0"  scrolling="no"></iframe>
     </td>
  </tr>
</table>
<table width="986" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td><iframe
			src="${pageContext.request.contextPath}/web/common/footer.html"
			width="986" height="159" scrolling="no" frameborder="0"></iframe></td>
	</tr>
</table>
</body>
</html>
